<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk">

<f:view>
	<f:loadBundle var="text" basename="#{maquinaList.bundleName}" />
	<head>
	<title>#{text['maquinaList.title']}</title>
	<meta name="heading" content="#{text['maquinaList.heading']}" />
	<meta name="menu" content="MaquinaMenu" />
	</head>
	<body id="maquinaList">
	<h:form id="editMaquina">

		<h:commandButton value="#{text['button.add']}" action="add" id="add"
			immediate="true" styleClass="button" />
		<h:commandButton value="#{text['button.done']}" action="mainMenu"
			id="cancel" immediate="true" styleClass="button"
			style="margin-left: 5px" />

		<t:dataTable id="maquinas" var="maquina" style="margin-top: 10px"
			value="#{maquinaList.maquinas}" rows="25"
			sortColumn="#{maquinaList.sortColumn}"
			sortAscending="#{maquinaList.ascending}"
			styleClass="scrollerTable table" headerClass="standardTable_Header"
			rowClasses="standardTable_Row1,standardTable_Row2"
			columnClasses="standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column,standardTable_ColumnCentered">

			<t:column>
				<f:facet name="header">
					<t:commandSortHeader columnName="id" arrow="true">
						<h:outputText value="#{text['maquina.id']}" />
					</t:commandSortHeader>
				</f:facet>
				<h:commandLink action="#{maquinaForm.edit}" value="#{maquina.id}">
					<f:param name="id" value="#{maquina.id}" />
					<f:param name="from" value="list" />
				</h:commandLink>
			</t:column>
			<t:column>
				<f:facet name="header">
					<t:commandSortHeader columnName="estatus" arrow="true">
						<h:outputText value="#{text['maquina.estatus']}" />
					</t:commandSortHeader>
				</f:facet>
				<h:outputText value="#{maquina.estatus}" escape="true" />
			</t:column>

			<t:column>
				<f:facet name="header">
					<t:commandSortHeader columnName="marca" arrow="true">
						<h:outputText value="#{text['maquina.marca']}" />
					</t:commandSortHeader>
				</f:facet>
				<h:outputText value="#{maquina.marca}" escape="true" />
			</t:column>

			<t:column>
				<f:facet name="header">
					<t:commandSortHeader columnName="modelo" arrow="true">
						<h:outputText value="#{text['maquina.modelo']}" />
					</t:commandSortHeader>
				</f:facet>
				<h:outputText value="#{maquina.modelo}" escape="true" />
			</t:column>

			<t:column>
				<f:facet name="header">
					<t:commandSortHeader columnName="noSerie" arrow="true">
						<h:outputText value="#{text['maquina.noSerie']}" />
					</t:commandSortHeader>
				</f:facet>
				<h:outputText value="#{maquina.noSerie}" escape="true" />
			</t:column>

			<t:column>
				<f:facet name="header">
					<t:commandSortHeader columnName="galga" arrow="true">
						<h:outputText value="#{text['maquina.galga']}" />
					</t:commandSortHeader>
				</f:facet>
				<h:outputText value="#{maquina.galga}" escape="true" />
			</t:column>

			<!--         
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="movimientos" arrow="true">
                <h:outputText value="#{text['maquina.movimientos']}" />
            </t:commandSortHeader>
        </f:facet>
    </t:column>

    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="piezasFaltantes" arrow="true">
                <h:outputText value="#{text['maquina.piezasFaltantes']}" />
            </t:commandSortHeader>
        </f:facet>
 

    </t:column>
-->
		</t:dataTable>

		<ui:include src="/common/tableFooter.xhtml">
			<ui:param name="tableName" value="maquinas" />
		</ui:include>

		<script type="text/javascript">
	highlightTableRows("editMaquina:maquinas");
</script>

	</h:form>
	</body>
</f:view>
</html>
